package com.appfahrt.persistence.Obj;

/**
 * Objekt der Fahrten Tabelle
 * @author adimitro
 * @version 0.2
 *
 */
public class Fahrten {
	public static int ID;
	public static int FK_ID_PROFIL_FAHRTENANBIETER;
	public static int FREIE_SIZE;
	public static float PREIS;
	public static boolean FAHRT_BEENDET;
	public static boolean FAHRT_GESTARTET;
	public static float AKTUELLE_LOGITUDE;
	public static float AKTUELLE_LATITUDE;
	public static int FK_ID_ADRESSE_START;
	public static int FK_ID_ADRESSE_ZIEL;
	public static int FK_ID_FAHRZEUG;

	public static String getAllColumns() {
		String aResult = "";
		aResult = ID + "," + FK_ID_PROFIL_FAHRTENANBIETER + "," + FREIE_SIZE
				+ "," + PREIS +  "," + FAHRT_GESTARTET + "," + FAHRT_BEENDET + "," + AKTUELLE_LOGITUDE + ","
				+ AKTUELLE_LOGITUDE + "," + FK_ID_ADRESSE_START + ","
				+ FK_ID_ADRESSE_ZIEL + "," + FK_ID_FAHRZEUG;
		return aResult;
	}
	public Fahrten(float pPreis, String pFahrtGestartet)
	{
		this.PREIS = pPreis;
		if(pFahrtGestartet.equalsIgnoreCase("true")){
			this.FAHRT_GESTARTET = true;
		}else{
			this.FAHRT_GESTARTET = false;
		}
	}
}
